module.exports = function(grunt) {
  grunt.initConfig({
    sass: {                              
      dev: {
        options: {
          style: 'expanded'
        },
        files: {
          'css/app.css': 'sass/app.scss',
          'css/home.css': 'sass/home.scss'
        }
      }
    },
    uglify: {
      dev: {
        files: {
          'js/global.min.js': ['js/global.js']
        }
      }
    },
    watch: {
      sass:{
        files:['**/sass/*.scss'],
        tasks: ['sass']
      },
      uglify:{
        files: ['**/js/*.js', '**/*.js'],
        tasks: ['uglify']
      },
      dev:{
        files: ['Gruntfile.js'],
        tasks: ['dev']
      },
      options:{
        livereload: true
      }
    }
  });

  grunt.loadNpmTasks('grunt-contrib-sass');
  grunt.loadNpmTasks('grunt-contrib-uglify');
  grunt.loadNpmTasks('grunt-contrib-watch');


  grunt.registerTask('dev', ['sass:dev', 'uglify:dev']);
  grunt.registerTask('default', ['dev', 'watch']);
}